import { createRouter, createWebHistory } from 'vue-router'
import Dashboard from '../pages/Dashboard.vue'
import Simulation from '../pages/Simulation.vue'
import History from '../pages/History.vue'
import Battery from '../views/system/battery/index.vue'
import ElectPrice from '../pages/ElecPrice.vue'

import Enviroment from '../pages/EnvParameter.vue'
import EnvTable from '../pages/EnvTable.vue'
const routes = [
    { path: '/', redirect: '/simulation' },
    { path: '/dashboard', component: Dashboard },
    { path: '/simulation', component: Simulation },
    { path: '/history', component: History },
    { path: '/battery', component: Battery },
    { path: '/env', component: Enviroment },
    { path:'/battery',component:Battery},
    { path:'/electPrice',component: ElectPrice},
    { path: '/envTable' , component: EnvTable}
]

const router = createRouter({
    history: createWebHistory(),
    routes,
})

export default router
